package com.zhuangxiaoyan.jvm.chapter04.java;

/**
 * @description
 * @param: null
 * @date: 2021/12/4 11:09
 * @return:
 * @author: xjl
 */
class Father {
    public static void print(String str) {
        System.out.println("father " + str);
    }

    public void show(String str) {
        System.out.println("father " + str);
    }
}

class Son extends Father {
}

public class VirtualMethodTest {
    public static void main(String[] args) {
        Son.print("coder");
        Father fa = new Father();
        fa.show("cooooder");
    }
}
